package com.nl.controller.web.bean;


import com.ibm.icu.text.DecimalFormat;
import com.nl.controller.common.util.NumUtil;
import com.nl.controller.web.util.SetBeanUtil;

public class SmsReportTotal {
    private String month;//发送月份 201711
    private String day;//发送日 20171228
    private String cityId; //地市编码
    private String cityName;//项目归属地市名
    private String mgrId;    //项目编码
    private String mgrName;  //项目名称
    private String mgrType; //项目类型
    private String content;  //短信内容
    private String regionId; //区域编码
    private String regionName; //区域名称
    private String stationName;  //基站名称
    private String stationId;  //基站编码
    private String longNum;//长短信的发送量
    private String longPercent;  //长短信百分比
    private String normalNum;//正常短信的发送量
    private String normalPercent; //正常短信的百分比
    private String fieldNum;  //外地发送量
    private String fieldPercent; //外地发送百分比
    private String longNumSplit;//长短信拆分后
    private String countyName;//区县名
    private String otherProvinces="0";//外省发送量
    private String otherProvincesPercent;//外省发送百分比
    private String otherCities;//外市发送量
    private String otherCitiesPercent;//外市发送百分比
    private String countyId;//区县编码
    
    private String sender; //短信通道号
    
    private String totalCount;//发送总量
    private String totalFee;//发送总费用
    
    private  DecimalFormat df=new DecimalFormat("0.00");
    
    
    public String getLongNumSplit() {
        return longNumSplit;
    }

    public void setLongNumSplit(String longNumSplit) {
        this.longNumSplit = longNumSplit;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return SetBeanUtil.getCityName(this.cityId);
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getMgrId() {
        return mgrId;
    }

    public void setMgrId(String mgrId) {
        this.mgrId = mgrId;
    }

    public String getMgrName() {
        return mgrName;
    }

    public void setMgrName(String mgrName) {
        this.mgrName = mgrName;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public String getLongNum() {
        return longNum;
    }

    public void setLongNum(String longNum) {
        this.longNum = longNum;
    }

    public String getLongPercent() {
     return NumUtil.getPercent(Double.parseDouble(this.longNum),NumUtil.add(Double.parseDouble(this.longNum), Double.parseDouble(this.normalNum)));
    }

    public void setLongPercent(String longPercent) {
        this.longPercent = longPercent;
    }

    public String getNormalNum() {
        return normalNum;
    }

    public void setNormalNum(String normalNum) {
        this.normalNum = normalNum;
    }

    public String getNormalPercent() {
        return NumUtil.getPercent(Double.parseDouble(this.normalNum),NumUtil.add(Double.parseDouble(this.longNum), Double.parseDouble(this.normalNum)));

    }

    public void setNormalPercent(String normalPercent) {
        this.normalPercent = normalPercent;
    }

    public String getFieldNum() {
        return fieldNum;
    }

    public void setFieldNum(String fieldNum) {
        this.fieldNum = fieldNum;
    }

    public String getFieldPercent() {
        return NumUtil.getPercent(Double.parseDouble(this.fieldNum),NumUtil.add(Double.parseDouble(this.longNum), Double.parseDouble(this.normalNum)));

    }

    public void setFieldPercent(String fieldPercent) {
        this.fieldPercent = fieldPercent;
    }

	public String getCountyName() {
		return countyName;
	}

	public void setCountyName(String countyName) {
		this.countyName = countyName;
	}

	public String getOtherProvinces() {
		return otherProvinces;
	}

	public void setOtherProvinces(String otherProvinces) {
		this.otherProvinces = otherProvinces;
	}

	public String getOtherCities() {
		return String.valueOf(Integer.parseInt(this.fieldNum) - Integer.parseInt(this.otherProvinces));
	}

	public void setOtherCities(String otherCities) {
		this.otherCities = otherCities;
	}

	public String getOtherProvincesPercent() {
		return NumUtil.getPercent(Double.parseDouble(this.otherProvinces),NumUtil.add(Double.parseDouble(this.longNum), Double.parseDouble(this.normalNum)));
	}

	public void setOtherProvincesPercent(String otherProvincesPercent) {
		this.otherProvincesPercent = otherProvincesPercent;
	}

	public String getOtherCitiesPercent() {
		return NumUtil.getPercent(Double.parseDouble(String.valueOf(Integer.parseInt(this.fieldNum) - Integer.parseInt(this.otherProvinces))),NumUtil.add(Double.parseDouble(this.longNum), Double.parseDouble(this.normalNum)));
	}

	public void setOtherCitiesPercent(String otherCitiesPercent) {
		this.otherCitiesPercent = otherCitiesPercent;
	}

	public String getCountyId() {
		return countyId;
	}

	public void setCountyId(String countyId) {
		this.countyId = countyId;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTotalCount() {
		return String.valueOf(Integer.valueOf(this.normalNum)+Integer.valueOf(this.longNumSplit));
	}

	public void setTotalCount(String totalCount) {
		this.totalCount = totalCount;
	}

	public String getTotalFee() {
		return String.valueOf(df.format((Integer.valueOf(this.normalNum)+Integer.valueOf(this.longNumSplit))*0.03));
	}

	public void setTotalFee(String totalFee) {
		this.totalFee = totalFee;
	}

	public String getMgrType() {
		return mgrType;
	}

	public void setMgrType(String mgrType) {
		this.mgrType = mgrType;
	}

	
}
